﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SqLiteEditor.Helper
{
    public class TTabelStructure
    {
        public object FieldType { get; set; }
        public string FieldTypeName { get; set; }

        public string ColumnName { get; set; }
        public string DataType { get; set; }
        public bool IsAllowNull { get; set; }
        public object DefaultValue { get; set; }
        public bool IsPrimaryKey { get; set; }
        public bool IsUNIQUE { get; set; }
        public bool IsAutoIncrement { get; set; }

        public TTabelStructure(string _ColumnName, string fieldTypeName, object fieldType, bool isPrimary, bool isAllowNull)
        {
            this.FieldType = fieldType;
            this.ColumnName = _ColumnName;
            this.FieldTypeName = fieldTypeName;
            this.IsPrimaryKey = isPrimary;
            this.IsAllowNull = isAllowNull;
        }

        public override string ToString()
        {
            return (ColumnName + " : (" + FieldTypeName + ")");
        }

    }
}
